class Board{
	public static void main(String[] args){
		char[] arr = "0123456789abcdef".toCharArray();
		for(int i = 0; i<arr.length + 1; i++){
			if(0 == i){
				System.out.print("" + "\t");
			}else{
				System.out.print(arr[i - 1] + "\t");
			}
			for(int j = 0; j<arr.length; j++){
				if(0 == i){
					System.out.print(arr[j]);
				}else{
					System.out.print("+");
				}
				if(arr.length - 1 != j){
					System.out.print("\t");
				}
			}
			System.out.print("\n");
		}
	}
}